package com.pzb.wechat.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;
import java.util.Date;

/**
 * 三方信息对象 wechat_component
 * 
 * @author Mr_Wu
 * @date 2021-12-31
 */
public class WechatComponent implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Date ticketCreateTime;

    /** $column.columnComment */
    private String ticket;

    /** $column.columnComment */
    private Date tokenCreateTime;

    /** $column.columnComment */
    private String componentAccessToken;

    public void setTicketCreateTime(Date ticketCreateTime) 
    {
        this.ticketCreateTime = ticketCreateTime;
    }

    public Date getTicketCreateTime() 
    {
        return ticketCreateTime;
    }
    public void setTicket(String ticket) 
    {
        this.ticket = ticket;
    }

    public String getTicket() 
    {
        return ticket;
    }
    public void setTokenCreateTime(Date tokenCreateTime) 
    {
        this.tokenCreateTime = tokenCreateTime;
    }

    public Date getTokenCreateTime() 
    {
        return tokenCreateTime;
    }
    public void setComponentAccessToken(String componentAccessToken) 
    {
        this.componentAccessToken = componentAccessToken;
    }

    public String getComponentAccessToken() 
    {
        return componentAccessToken;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("ticketCreateTime", getTicketCreateTime())
            .append("ticket", getTicket())
            .append("tokenCreateTime", getTokenCreateTime())
            .append("componentAccessToken", getComponentAccessToken())
            .toString();
    }
}
